package samsung.sds.system.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import samsung.sds.survey.surveyManagement.service.SurveyManagementService;

@Component
public class TaskJob {

	@Autowired
	private SurveyManagementService surveyManagementServiceImpl;
	
	@Scheduled(cron = "0 0 1 * * ?")
	/**
	 * 每天凌晨1点更新问卷状态
	 */
	public void updateJob1(){
		surveyManagementServiceImpl.updateSurveyStatusTask("2");
	}
}
